package com.hwhhhh.graduationproject.utils;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Description detail
 * Created by Hwhhhh on 2021/3/2 15:26
 */
@AllArgsConstructor
public enum ResponseCode {
    SUCCESS(200, "请求成功！"),
    DUPLICATE_EMAIL(201,"邮箱号已注册！"),
    WRONG_LOGIN(202, "用户名或密码错误"),
    INVALID_ACCOUNT(203, "用户已被封禁！请联系管理员"),
    NO_FREECLASS(204, "没有空闲教室！"),

    BAD_REQUEST(400, "错误的请求！"),
    // 403为token相关错误

    SERVER_ERROR(500, "服务器出错！"),
    HEADPORTRAIT_ERROR(501, "头像上传异常！");

    int code;
    String msg;
}
